

package jetbrains.buildServer.server.rest.model.versionedSettings;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import jetbrains.buildServer.server.rest.swagger.annotations.ModelBaseType;
import jetbrains.buildServer.server.rest.swagger.annotations.ModelDescription;
import jetbrains.buildServer.server.rest.swagger.constants.ObjectType;
import org.jetbrains.annotations.NotNull;


@XmlRootElement(name = "versionedSettingsTokens")
@ModelDescription(
  value = "Represents a Versioned Settings Tokens.",
  externalArticleLink = "https://www.jetbrains.com/help/teamcity/storing-project-settings-in-version-control.html#Managing+Tokens",
  externalArticleName = "Managing Tokens"
)
@ModelBaseType(ObjectType.LIST)
public class VersionedSettingsTokens {

  private List<VersionedSettingsToken> myTokens;


  @SuppressWarnings("unused")
  public VersionedSettingsTokens() {
  }

  public VersionedSettingsTokens(@NotNull List<VersionedSettingsToken> tokens) {
    myTokens = tokens;
  }

  @XmlElement(name = VersionedSettingsToken.TYPE)
  public List<VersionedSettingsToken> getTokens() {
    return myTokens;
  }

  public void setTokens(List<VersionedSettingsToken> tokens) {
    myTokens = tokens;
  }
}